# -*- coding: cp1250 -*-

import string

def to1250(in_s):
    try:
        in_s = string.strip(in_s.encode("cp1250"))
    except:
        in_s = string.strip(str(in_s))
    return in_s

def to852(in_s):
    try:
        in_s = string.strip(in_s.encode("cp852"))
    except:
        in_s = string.strip(str(in_s))
    return in_s

def main():
    pass

if __name__ == "__main__":
    main()
